﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CarLoanSystem.Entity;

namespace CarLoanSystem
{
    public partial class frmMainDebtEmployee : Form
    {
        private EmployeeItem empItem;
        public frmMainDebtEmployee(EmployeeItem item)
        {
            InitializeComponent();
            empItem = item;
            this.panelMain.Show();
            this.panelDebtInfo.Hide();
        }

        private void btnDebtPayment_Click(object sender, EventArgs e)
        {
            this.panelDebtInfo.setEmployee(empItem);
            this.panelDebtInfo.Show();
        }

        private void btnMain_Click(object sender, EventArgs e)
        {
            this.panelDebtInfo.Hide();
            this.panelMain.Show();
        }

        private void btnAlerts_Click(object sender, EventArgs e)
        {
            this.panelMain.Hide();
            this.panelDebtInfo.Hide();
            this.panelAlertsMessage.setEmployee(empItem);
            this.panelAlertsMessage.Show();
        }
    }
}
